import Mock,{Random} from 'mockjs'

Mock.mock('/getyzm','get',{
    'yzm':Random.integer(100000,999999)
});

Mock.mock('/api/login','post',{
    code:1,
    data:{
        message:'登录成功！',
        username:'张三',
        token:'dskLCogfdlSGIAFxliqS'
    }
});